#ifdef WIN32
#include <windows.h>
#endif

#include <GL/glew.h>
#include <iostream>

#include "TextureReference.h"

using namespace std;

TextureReference::TextureReference() {
}

void TextureReference::use(unsigned int textureUnit, unsigned int faceIndex,
		unsigned int vertIndex) {
	Vector3 textureUV = uvLayer->getTexcoords()[3 * faceIndex + vertIndex];
	glMultiTexCoord2f(GL_TEXTURE0 + textureUnit, textureUV.x, textureUV.y);
}

TextureReference::~TextureReference() {
	//cout << "Deleting TextureReference." << endl;
}
